package com.qingzhuge.manager.security.rest;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

/**
 * @author zeroxiao
 * @date 2019/9/11 21:54
 * 用户登录信息
 */
@Getter
@Setter
@ApiModel(value = "用户登录",description = "注册,找回密码")
public class AuthorizationUser {
    @ApiModelProperty("账号：用户名，手机号，邮箱")
    @NotBlank
    private String username;
    @ApiModelProperty("密码：用户密码，手机验证码")
    @NotBlank
    private String password;
    @ApiModelProperty("图片验证码")
    private String code;
    @ApiModelProperty("登录方式：用户名，手机号，邮箱")
    private String type;

    @Override
    public String toString() {
        return "{username=" + username  + ", password= ******}";
    }
}
